package cn.edu.ctbu.kcsj.service;

import cn.edu.ctbu.kcsj.domain.Admin;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AdminService {

    /**
     * 验证用户名和密码，通过返回读取学生
     * @param ano
     * @param password
     */
     Admin validateAnoAndPassword(Integer ano, String password) throws Exception;

    List<Admin> findByAnoAndPassword(Integer ano, String password);
    Admin getByAno(Integer ano);

    Admin update(Admin admin);
}
